import { S } from '../../s';
import { IPSDEUILogic } from './ipsdeuilogic';
import { IPSDEUILogicParam } from './ipsdeuilogic-param';
import { IPSDEUIResetParamLogic } from './ipsdeuireset-param-logic';
import { PSDEUILogicNodeImpl } from './psdeuilogic-node-impl';

export class PSDEUIResetParamLogicImpl
  extends PSDEUILogicNodeImpl
  implements IPSDEUIResetParamLogic
{
  protected dstpsdeuilogicparam: IPSDEUILogicParam;
  getDstPSDEUILogicParam(): IPSDEUILogicParam | null {
    if (this.dstpsdeuilogicparam != null) return this.dstpsdeuilogicparam;
    const value = this.M.getDstPSDEUILogicParam;
    if (value == null) {
      return;
    }
    const ipsdeuilogic = this.getParentPSModelObject(S._206) as IPSDEUILogic;
    if (ipsdeuilogic != null) {
      this.dstpsdeuilogicparam = ipsdeuilogic.findPSDEUILogicParam(value);
    }
    return this.dstpsdeuilogicparam;
  }
  get cls(): string {
    return 'PSDEUIResetParamLogicImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._3ca) return true;
    return super.instanceof(cls);
  }
}
